package com.entity;

public class Goods {
    private Integer gid;        // 商品ID
    private String gname;       // 商品名称
    private Integer gnum;       // 商品数量
    private Double gprice;      // 商品价格
    private Boolean gstatus;    // 商品状态

    // 构造函数
    public Goods() {}

    public Goods(Integer gid, String gname, Integer gnum, Double gprice, Boolean gstatus) {
        this.gid = gid;
        this.gname = gname;
        this.gnum = gnum;
        this.gprice = gprice;
        this.gstatus = gstatus;
    }

    // getter和setter方法
    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Integer getGnum() {
        return gnum;
    }

    public void setGnum(Integer gnum) {
        this.gnum = gnum;
    }

    public Double getGprice() {
        return gprice;
    }

    public void setGprice(Double gprice) {
        this.gprice = gprice;
    }

    public Boolean getGstatus() {
        return gstatus;
    }

    public void setGstatus(Boolean gstatus) {
        this.gstatus = gstatus;
    }
} 